<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<html:html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>
  <bean:message key="F0406.title"/>
  </title>
  <META http-equiv=Pragma content=no-cache>
  <META http-equiv=Cache-Control content=no-cache>
  <META http-equiv=Expires content=0>
  <link rel="stylesheet"
		href="<%=request.getContextPath()%>/resource/css/style.css"
		type="text/css">
  <script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/resource/js/util.js"></script>
  <script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/style/scripts/util.js"></script>
  <script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/resource/js/Validator.js"></script>
  <script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/resource/calendar/DCDA_C03.js"></script>
  <%------------- -----------------------------------动态加载start----------------------------------------------------------------------%> 		
	<script language="javascript" type="text/javascript"
		src="<%=request.getContextPath()%>/resource/js/AdyhUtil.js"></script>	
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/style/ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/style/ext/ext-all.js"></script>	
<%------------------------------------------------动态加载end----------------------------------------------------------------------%> 
  <script language="javascript" type="text/javascript">
  
	//------------------------------------------------动态加载start---------------------------------------------------------------------- 
//动态加载 
function FiltSupplier(obj)
  {  	//
  		var strValue = Jtrim(obj.value);   
		if(strValue==""){//检索条件为空时，不检索
			return ;
		}
		if(event.keyCode==38||event.keyCode==40||event.keyCode==13){
			keyEnter();
			if(numsup>=0&&(event.keyCode==38||event.keyCode==40)){
				document.getElementById("row"+numsup).focus();
				document.getElementById("row"+numsup).scrollIntoView(false);
			}
			return;
		}
  		
		var strId =  obj.name;
		  
		//回显的编码的字段名称
		var strCode = "";
		//回显的名称的字段名称
		var strName = "";
		//相应的div的名称
		var strObj = "rtnList";
		
		strTextName=strId
		
		//供应商
		if(strId=='materialName'){
			strCode = "materialCode";
			strName = "materialName";
		//材料
		}else if(strId=='supplierName1'){
			strId = 'supplierName'
			strCode = "supplierCode1";
			strName = "supplierName1";
		}else if(strId=='supplierName2'){
			strId = 'supplierName'
			strCode = "supplierCode2";
			strName = "supplierName2";
		}else if(strId=='supplierName3'){
			strId = 'supplierName'
			strCode = "supplierCode3";
			strName = "supplierName3";
		}else if(strId=='supplierName4'){
			strId = 'supplierName'
			strCode = "supplierCode4";
			strName = "supplierName4";
		}
		
   		Ext.Ajax.request(
   		{
		url : 'F0406.do' , 
		params : {operationType:'ajax',id:strId,name:strValue},
		method: 'POST',
		success: function ( result, request) 
			{
			var listArray = new Array();
			var obj= Ext.decode(result.responseText) ;
			var objPrompt = document.getElementById(strObj);			
			objPrompt.style.display = "block";		
			objPrompt.innerHTML = "";
			document.getElementById(strTextName).style.position="relative";
			initPosition(strObj);
			listArray = obj.data.list;
			var inn = "<table WIDTH=\"100%\" BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"1\" bgcolor=\"#FFFFFF\" id=\"sup\" class=\"ListBackground\">";
 	        for (i=0; i<listArray.length; i++){
				if(strId=='materialName'){
					inn += "<tr class=\"ListRow1\" height=\"20\" id=\"row"+(i)+"\"  onClick=\"javascript:show5('"+strObj+"','"+listArray[i][0]+"','"+strCode+"','"+listArray[i][1]+"','"+strName+"','"+listArray[i][2]+"','"+listArray[i][3]+"','"+listArray[i][4]+"')\">";
				}else{
					inn += "<tr class=\"ListRow1\" height=\"20\" id=\"row"+(i)+"\"  onClick=\"javascript:show('"+strObj+"','"+listArray[i][0]+"','"+strCode+"','"+listArray[i][1]+"','"+strName+"')\">";
				}
				inn += "<td>";
				inn += listArray[i][1];
				inn += "</td>";
				inn += "</tr>";
			}
			inn+="</table>";
			
			rownum=i;//获取动态加载的行数
			
			//若检索的结果是空，关闭div
			if(listArray.length==1&&listArray[0][0]==""&&listArray[0][1]==""){
				inn = "";
			}
			
			objPrompt.innerHTML += inn;
			if(rownum>0&&inn!=""){
				document.getElementById("row0").focus();
			}
			FocusTableRow1("sup",0);//鼠标划过变色
			setPosition(strObj,strName);	//设置div的位置	
			document.getElementById(strTextName).style.position="static";
			},	
		failure: function ( result, request) { 
			alert("<bean:message key="F020106.title"/>");
			} 
		}
		);
  }

//初始化div的位置
  function initPosition(strObj){
	var objPrompt = document.getElementById(strObj);
	objPrompt.style.top=0;
	objPrompt.style.left=0;
  }
  
  //设置div的位置
  function setPosition(strObjPrompt,strObjText){
  	var objPrompt = document.getElementById(strObjPrompt);
	var objText = document.getElementById(strObjText);
	objPrompt.style.top = 20-(objPrompt.offsetTop-objText.offsetTop);
	objPrompt.style.left = objText.offsetLeft-18;
  }
  
  //设置div的位置
  function initColumn(){
		if(strTextName=='materialName'){
			strCode = "materialCode";
			strName = "materialName";
		//材料
		}else if(strTextName=='supplierName1'){
			strCode = "supplierCode1";
			strName = "supplierName1";
		}else if(strTextName=='supplierName2'){
			strCode = "supplierCode2";
			strName = "supplierName2";
		}else if(strTextName=='supplierName3'){
			strCode = "supplierCode3";
			strName = "supplierName3";
		}else if(strTextName=='supplierName4'){
			strCode = "supplierCode4";
			strName = "supplierName4";
		}
  	document.getElementById(strCode).value = "";
	document.getElementById(strName).value = "";
  }
  
    //回显焦点所在的行的数据
  function show5(strObj,code,strCode,name,strName,materalFamily,measuringUnit,description){
  	var objPrompt = document.getElementById(strObj);
	objPrompt.style.display = "none";
	objPrompt.innerHTML = "";
  	document.getElementById(strCode).value = code;
	document.getElementById(strName).value = name;	
	document.getElementById("familyName").value = materalFamily;
	document.getElementById("measuringUnitName").value = measuringUnit;	
	document.getElementById("description").value = description;
	numsup=-1;
  }

//------------------------------------------------动态加载end---------------------------------------------------------------------- 

 function checkSupplier()
{	var supplierCode1 = Jtrim(document.getElementById("supplierCode1").value);
	var supplierName1 =Jtrim( document.getElementById("supplierName1").value);
	var price1 = Jtrim(document.getElementById("price1").value);
	var deliveryTime1 = Jtrim(document.getElementById("deliveryTime1").value);
	if(isNumber(price1)||parseInt(price1)<=0||price1.length==0||supplierCode1.length==0||supplierName1.length==0||isNumber(deliveryTime1)||deliveryTime1.length==0||parseInt(deliveryTime1)<=0){
		var objPrompt = document.getElementById("divPrompt");
		objPrompt.style.display = "block";
		objPrompt.innerHTML = "";
		objPrompt.innerHTML += "<li><bean:message key="F0406.alert.supplier"/>！";	
	}
} 
  
  
/**保存*/
function ShowAlert()
{	
	ResetMe();
	var materialCode = Jtrim(document.getElementById("materialCode").value);
	var materialName = Jtrim(document.getElementById("materialName").value);
	var familyName = document.getElementById("familyName").value;
	var measuringUnitName = Jtrim(document.getElementById("measuringUnitName").value);
	var description = Jtrim(document.getElementById("description").value);
	
	var supplierCode1 = Jtrim(document.getElementById("supplierCode1").value);
	var supplierName1 = Jtrim(document.getElementById("supplierName1").value);
	var price1 = Jtrim(document.getElementById("price1").value);
	var deliveryTime1 = Jtrim(document.getElementById("deliveryTime1").value);
	
	var supplierName2 = Jtrim(document.getElementById("supplierName2").value);
	if(supplierName2.length==0){
		document.getElementById("supplierCode2").value="";
	}
	var supplierCode2 = Jtrim(document.getElementById("supplierCode2").value);
	var price2 =Jtrim( document.getElementById("price2").value);
	var deliveryTime2 = Jtrim(document.getElementById("deliveryTime2").value);
	
	var supplierName3 = Jtrim(document.getElementById("supplierName3").value);
	if(supplierName3.length==0){
		document.getElementById("supplierCode3").value="";
	}
	var supplierCode3 = Jtrim(document.getElementById("supplierCode3").value);
	var price3 = Jtrim(document.getElementById("price3").value);
	var deliveryTime3 = Jtrim(document.getElementById("deliveryTime3").value);
	
	var supplierName4 = Jtrim(document.getElementById("supplierName4").value);
	if(supplierName4.length==0){
		document.getElementById("supplierCode4").value="";
	}
	var supplierCode4 = Jtrim(document.getElementById("supplierCode4").value);
	var price4 = Jtrim(document.getElementById("price4").value);
	var deliveryTime4 = Jtrim(document.getElementById("deliveryTime4").value);
	
	
	
	var str1 = ","+supplierCode2+","+supplierCode3+","+supplierCode4+",";
	var str2 = ","+supplierCode1+","+supplierCode3+","+supplierCode4+",";
	var str3 = ","+supplierCode2+","+supplierCode1+","+supplierCode4+",";
	var str4 = ","+supplierCode2+","+supplierCode3+","+supplierCode1+",";
	var strCode2 = ","+supplierCode2+",";
	var strCode3 = ","+supplierCode3+",";
	var strCode4 = ","+supplierCode4+",";
	
	var strName1 = supplierName2+","+supplierName3+","+supplierName4;
	var strName2 = supplierName1+","+supplierName3+","+supplierName4;
	var strName3 = supplierName1+","+supplierName2+","+supplierName4;
	var strName4 = supplierName1+","+supplierName2+","+supplierName3;
	
	var objPrompt = document.getElementById("divPrompt");
    objPrompt.style.display = "block";
    objPrompt.innerHTML = "";
	
	if(materialCode.length==0||materialName.length==0||familyName.length==0||measuringUnitName.length==0||description.length>100||
	isNumber(price1)||parseInt(price1)<=0||price1.length==0||supplierCode1.length==0||str1.indexOf(supplierCode1)>=0||supplierName1.length==0||strName1.indexOf(supplierName1)>=0||isNumber(deliveryTime1)||deliveryTime1.length==0||parseInt(deliveryTime1)<=0||
	isNumber(price2)||parseInt(price2)<=0||price2.length==0||supplierCode2.length==0||str2.indexOf(supplierCode2)>=0||supplierName2.length==0||strName2.indexOf(supplierName2)>=0||isNumber(deliveryTime2)||deliveryTime2.length==0||parseInt(deliveryTime2)<=0||
	isNumber(price3)||parseInt(price3)<=0||price3.length==0||supplierCode3.length==0||str3.indexOf(supplierCode3)>=0||supplierName3.length==0||strName3.indexOf(supplierName3)>=0||isNumber(deliveryTime3)||deliveryTime3.length==0||parseInt(deliveryTime3)<=0||
	isNumber(price4)||parseInt(price4)<=0||price4.length==0||supplierCode4.length==0||str4.indexOf(supplierCode4)>=0||supplierName4.length==0||strName4.indexOf(supplierName4)>=0||isNumber(deliveryTime4)||deliveryTime4.length==0||parseInt(deliveryTime4)<=0){
		//材料信息
		if(materialCode.length==0){
			objPrompt.innerHTML += "<li><bean:message key="adyh.materialCode"/><bean:message key="adyh.error.isnull"/>！";
			document.getElementById("materialCode").className = "MyControlError";
		}		
		if(materialName.length==0){
			objPrompt.innerHTML += "<li><bean:message key="adyh.materialName"/><bean:message key="adyh.error.isnull"/>！";
			document.getElementById("materialName").className = "MyControlError";
		}
		if(measuringUnitName.length==0){
			objPrompt.innerHTML += "<li><bean:message key="F0406.measuringUnit"/><bean:message key="adyh.error.isnull"/>！";
			document.getElementById("measuringUnitName").className = "MyControlError";
		}
		if(familyName.length==0){
			objPrompt.innerHTML += "<li><bean:message key="F0404.supplierFamily"/><bean:message key="adyh.error.isnull"/>！";
			document.getElementById("familyName").className = "MyControlError";
		}
		if(description.length>100){
			objPrompt.innerHTML += "<li><bean:message key="F0406.materalFamily"/><bean:message key="adyh.error.isnull"/>！";
			document.getElementById("description").className = "MyControlError";
		}
		
		//供应商1
		if(supplierCode1.length==0){
			objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>1<bean:message key="adyh.error.isnull"/>！";
			document.getElementById("supplierCode1").className = "MyControlError";
		}	
		if(supplierName1.length==0){
			objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>1<bean:message key="adyh.error.isnull"/>！";
			document.getElementById("supplierName1").className = "MyControlError";
		}else if(strName1.indexOf(supplierName1)>=0){
			objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>1<bean:message key="F0406.alert.repetitious"/>！";
			document.getElementById("supplierName1").className = "MyControlError";
		}
		if(price1.length==0){
			objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>1<bean:message key="adyh.error.isnull"/>！";
			document.getElementById("price1").className = "MyControlError";
		}else if(parseInt(price1)<=0||isNumber(price1)){
			objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>1<bean:message key="adyh.error"/>！";
			document.getElementById("price1").className = "MyControlError";
		}
		if(deliveryTime1.length==0){
			objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>1<bean:message key="adyh.error.isnull"/>！";
			document.getElementById("deliveryTime1").className = "MyControlError";
		}else if(parseInt(deliveryTime1)<=0||isNumber(deliveryTime1)){
			objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>1<bean:message key="adyh.error"/>！";
			document.getElementById("deliveryTime1").className = "MyControlError";
		}
		
		//供应商2
		if(supplierCode2.length!=0||supplierName2.length!=0||(price2.length!=0&&parseInt(price2)>0)||(deliveryTime2.length!=0&&parseInt(deliveryTime2)>0)){
			if(supplierCode2.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>2<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("supplierCode2").className = "MyControlError";
			}else if(str2.indexOf(strCode2)>=0){
				alert("str2="+str2+"/supplierCode2="+supplierCode2);
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>2<bean:message key="F0406.alert.repetitious"/>！";
				document.getElementById("supplierCode2").className = "MyControlError";
			}			
			if(supplierName2.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>2<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("supplierName2").className = "MyControlError";
			}else if(strName2.indexOf(supplierName2)>=0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>2<bean:message key="F0406.alert.repetitious"/>！";
				document.getElementById("supplierName2").className = "MyControlError";
			}
			if(price2.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>2<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("price2").className = "MyControlError";
			}else if(parseInt(price2)<=0||isNumber(price2)){
				objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>2<bean:message key="adyh.error"/>！";
				document.getElementById("price2").className = "MyControlError";
			}
			if(deliveryTime2.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>2<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("deliveryTime2").className = "MyControlError";
			}else if(parseInt(deliveryTime2)<=0||isNumber(deliveryTime2)){
				objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>2<bean:message key="adyh.error"/>！";
				document.getElementById("deliveryTime2").className = "MyControlError";
			}
		}
		
		
		//供应商3
		if(supplierCode3.length!=0||supplierName3.length!=0||(price3.length!=0&&parseInt(price3)>0)||(deliveryTime3.length!=0&&parseInt(deliveryTime3)>0)){
			if(supplierCode2.length==0&&supplierName2.length==0&&(price2.length==0||parseInt(price2)<=0)&&(deliveryTime2.length==0||parseInt(deliveryTime2)<=0)){
				objPrompt.innerHTML = "<li><bean:message key="F0404.supplierName"/>2<bean:message key="F0406.alert.supplier"/>！"
				return;
			}
			if(supplierCode3.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>3<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("supplierCode3").className = "MyControlError";
			}else if(str3.indexOf(strCode3)>=0){
				alert("str3="+str3+"/supplierCode3="+supplierCode3);
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>3<bean:message key="F0406.alert.repetitious"/>！";
				document.getElementById("supplierCode3").className = "MyControlError";
			}			
			if(supplierName3.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>3<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("supplierName3").className = "MyControlError";
			}else if(strName3.indexOf(supplierName3)>=0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>3<bean:message key="F0406.alert.repetitious"/>！";
				document.getElementById("supplierName3").className = "MyControlError";
			}
			if(price3.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>3<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("price3").className = "MyControlError";
			}else if(parseInt(price3)<=0||isNumber(price3)){
				objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>3<bean:message key="adyh.error"/>！";
				document.getElementById("price3").className = "MyControlError";
			}
			if(deliveryTime3.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>3<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("deliveryTime3").className = "MyControlError";
			}else if(parseInt(deliveryTime3)<=0||isNumber(deliveryTime3)){
				objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>3<bean:message key="adyh.error"/>！";
				document.getElementById("deliveryTime3").className = "MyControlError";
			}
		}
		
		//供应商4
		if(supplierCode4.length!=0||supplierName4.length!=0||(price4.length!=0&&parseInt(price4)>0)||(deliveryTime4.length!=0&&parseInt(deliveryTime4)>0)){
			if(supplierCode3.length==0&&supplierName3.length==0&&(price3.length==0||parseInt(price3)<=0)&&(deliveryTime3.length==0||parseInt(deliveryTime3)<=0)){
				objPrompt.innerHTML = "<li><bean:message key="F0404.supplierName"/>3<bean:message key="F0406.alert.supplier"/>！"
				return;
			}
			if(supplierCode4.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>4<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("supplierCode4").className = "MyControlError";
			}else if(str4.indexOf(strCode4)>=0){
				alert("str4="+str4+"/supplierCode4="+supplierCode4);
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierCode"/>4<bean:message key="F0406.alert.repetitious"/>！";
				document.getElementById("supplierCode4").className = "MyControlError";
			}			
			if(supplierName4.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>4<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("supplierName4").className = "MyControlError";
			}else if(strName4.indexOf(supplierName4)>=0){
				objPrompt.innerHTML += "<li><bean:message key="F0404.supplierName"/>4<bean:message key="F0406.alert.repetitious"/>！";
				document.getElementById("supplierName4").className = "MyControlError";
			}
			if(price4.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>4<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("price4").className = "MyControlError";
			}else if(parseInt(price4)<=0||isNumber(price4)){
				objPrompt.innerHTML += "<li><bean:message key="F0406.price"/>4<bean:message key="adyh.error"/>！";
				document.getElementById("price4").className = "MyControlError";
			}
			if(deliveryTime4.length==0){
				objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>4<bean:message key="adyh.error.isnull"/>！";
				document.getElementById("deliveryTime4").className = "MyControlError";
			}else if(parseInt(deliveryTime4)<=0||isNumber(deliveryTime4)){
				objPrompt.innerHTML += "<li><bean:message key="F0406.deliveryTime"/>4<bean:message key="adyh.error"/>！";
				document.getElementById("deliveryTime4").className = "MyControlError";
			}
		}
		if(objPrompt.innerHTML == ""){
			submitForm();
		}
	}else{
		submitForm();
	}
}

function submitForm(){
		document.getElementById("materialCode").value = Jtrim(document.getElementById("materialCode").value);
		document.getElementById("materialName").value = Jtrim(document.getElementById("materialName").value);
		document.getElementById("measuringUnitName").value = Jtrim(document.getElementById("measuringUnitName").value);
		document.getElementById("familyName").value = Jtrim(document.getElementById("familyName").value);
		
		document.getElementById("supplierCode1").value = Jtrim(document.getElementById("supplierCode1").value);
		document.getElementById("price1").value = Jtrim(document.getElementById("price1").value);
		document.getElementById("deliveryTime1").value = Jtrim(document.getElementById("deliveryTime1").value);
		
		document.getElementById("supplierCode2").value = Jtrim(document.getElementById("supplierCode2").value);
		document.getElementById("price2").value = Jtrim(document.getElementById("price2").value);
		document.getElementById("deliveryTime2").value = Jtrim(document.getElementById("deliveryTime2").value);
		
		document.getElementById("supplierCode3").value = Jtrim(document.getElementById("supplierCode3").value);
		document.getElementById("price3").value = Jtrim(document.getElementById("price3").value);
		document.getElementById("deliveryTime3").value = Jtrim(document.getElementById("deliveryTime3").value);
		
		document.getElementById("supplierCode4").value = Jtrim(document.getElementById("supplierCode4").value);
		document.getElementById("price4").value = Jtrim(document.getElementById("price4").value);
		document.getElementById("deliveryTime4").value = Jtrim(document.getElementById("deliveryTime4").value);
		var operationType = document.getElementById("operationType").value;
		if("add"==operationType||"addshow"==operationType){
			operationType = "insert";
		}else if("edit"==operationType||"editshow"==operationType){
			operationType = "update";
		}
		operation(operationType);
}

/**重置*/
function ResetMe()
{
    document.getElementById("materialCode").className = "MyText";
	document.getElementById("materialName").className = "MyText";
	document.getElementById("familyName").className = "MyText";
	document.getElementById("measuringUnitName").className = "MyText";
	
	document.getElementById("supplierCode1").className = "MyText";
	document.getElementById("supplierName1").className = "MyText";
	document.getElementById("price1").className = "MyText";
	document.getElementById("deliveryTime1").className = "MyText";
	
	document.getElementById("supplierCode2").className = "MyText";
	document.getElementById("supplierName2").className = "MyText";
	document.getElementById("price2").className = "MyText";
	document.getElementById("deliveryTime2").className = "MyText";
	
	document.getElementById("supplierCode3").className = "MyText";
	document.getElementById("supplierName3").className = "MyText";
	document.getElementById("price3").className = "MyText";
	document.getElementById("deliveryTime3").className = "MyText";
	
	document.getElementById("supplierCode4").className = "MyText";
	document.getElementById("supplierName4").className = "MyText";
	document.getElementById("price4").className = "MyText";
	document.getElementById("deliveryTime4").className = "MyText";
	
	var objPrompt = document.getElementById("divPrompt");
    objPrompt.style.display = "none";
	objPrompt.innerHTML = "";
}
function ShowFormTitle(strTitle)
{
	document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height:26px; background-position: left bottom; background-image: url(../../resource/image/FormTitle_A_4.gif); background-repeat: repeat-x;\">");
	document.write("  <tr >");
	document.write("	<td style=\"width:5px; background-position: left bottom; background-image: url(../../resource/image/FormTitle_A_1.gif); background-repeat: no-repeat;\">&nbsp;&nbsp;&nbsp;</td>");
	document.write("	<td class=\"FormTitle\" style=\"width:100%; padding-left:5px; padding-top:3px; background-position: left bottom; background-image: url(../../resource/image/FormTitle_A_2.gif); background-repeat: no-repeat;\">");
	document.write("		<span id=\"spanFormTitle\" class=\"SpanTitle\">"+ strTitle +"</span>");
	document.write("	</td>");
	document.write("	<td style=\"width:5px; background-position: right bottom; background-image: url(../../resource/image/FormTitle_A_3.gif); background-repeat: no-repeat;\">&nbsp;&nbsp;&nbsp;</td>");
    document.write("  </tr>");
	document.write("</table>");
}
/**根据材料编码或供应商编码显示材料名称或供应商名称*/
function showValue(flag)
{
	var materialCode = Jtrim(document.forms[0].materialCode.value);
	var supplierCode1 = Jtrim(document.forms[0].supplierCode1.value);
	var supplierCode2 = Jtrim(document.forms[0].supplierCode2.value);
	var supplierCode3 = Jtrim(document.forms[0].supplierCode3.value);
	var supplierCode4 = Jtrim(document.forms[0].supplierCode4.value);
	
	if(flag=="0"&&materialCode==""){
		alert("<bean:message key="F0406.alert.enter"/><bean:message key="adyh.materialCode"/>");
		return;
	}else if(flag=="1"&&supplierCode1==""){
		alert("<bean:message key="F0406.alert.enter"/><bean:message key="adyh.supplierCode"/>1");
		return;
	}else if(flag=="2"&&supplierCode2==""){
		alert("<bean:message key="F0406.alert.enter"/><bean:message key="F0404.supplierCode"/>2");
		return;
	}else if(flag=="3"&&supplierCode3==""){
		alert("<bean:message key="F0406.alert.enter"/><bean:message key="F0404.supplierCode"/>3");
		return;
	}else if(flag=="4"&&supplierCode4==""){
		alert("<bean:message key="F0406.alert.enter"/><bean:message key="F0404.supplierCode"/>4");
		return;
	}
	
	if(document.forms[0].operationType.value.indexOf("show")<=0){
		document.forms[0].operationType.value = document.forms[0].operationType.value+"show";
	}
	document.forms[0].showFlag.value = flag;
	document.forms[0].submit();
}
function getMessage() {
	var errorMsg = document.forms[0].errorFlag.value;
	if ("" != errorMsg) {
		//**操作成功！*/
		if (errorMsg == 0) {
			alert("<bean:message key="common.alert1"/>");
		}
		//**操作失败！*/
		if (errorMsg == 1) {
			alert("<bean:message key="common.alert2"/>");
		}
		//**查询无结果！*/
		if (errorMsg == 2) {
			alert("<bean:message key="common.alert3"/>");
		}
		//**系统异常，请联系管理员！*/
		if (errorMsg == 3) {
			alert("<bean:message key="common.alert4"/>");
		}
		document.forms[0].errorFlag.value = "";
	}
}
</script>
  </head>
  <body onLoad="getMessage();">
  <html:form method="post" action="/pages/F04/F0406.do">
  <html:hidden property="operationType" />
  <html:hidden property="errorFlag" />
  <html:hidden property="showFlag" />
  <html:hidden property="language"/>
  <html:hidden property="materialCode" />
  <html:hidden property="supplierCode1" />
  <html:hidden property="supplierCode2" />
  <html:hidden property="supplierCode3" />
  <html:hidden property="supplierCode4" />
  <!--Begin:表单标题-->
  <div class="DivBlock">
    <script language="javascript" type="text/javascript">
		ShowFormTitle("<bean:message key="F0406.title"/>");
	</script>
  </div>
  <!--End表单标题-->
  <logic:notEqual name="F0406ActionForm" property="operationType" value="show">
  <!--Begin表单折叠区块0-->
  <div id="divDlock_0" class="DivBlock">
    <div class="DivHead">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_0');"> </td>
          <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
            <bean:message key="F0406Detail0.title"/>
            </span> </td>
        </tr>
      </table>
    </div>
    <div class="DivTail" style="display:block">
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%">
            <bean:message key="adyh.materialName"/></TD>
          <TD NOWRAP align="left" width="30%"><html:text property="materialName" styleClass="MyText" onkeyup="FiltSupplier(this)" ondblclick="FiltSupplier(this)" style="position:static"  onblur="loseFocus('rtnList')" />
            <span class="Need">*</span></TD>
          <TD NOWRAP align="right" width="20%">&nbsp;
            </TD>
          <TD NOWRAP align="left" width="30%">&nbsp;
          </TD>
        </TR>
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.measuringUnit"/></TD>
          <TD NOWRAP align="left"><html:text property="measuringUnitName" styleClass="MyTextReadOnly" readonly="true" /></TD>
          <TD ALIGN="right" NOWRAP width="20%"><!--所属家族-->
            <bean:message key="F0404.supplierFamily"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="familyName" styleClass="MyTextReadOnly" readonly="true"/></TD>
        </TR>
		<TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.description"/></TD>
          <TD NOWRAP align="left" colspan="3"><html:textarea property="description" styleClass="MyAreaReadOnly" readonly="true" style="width:533" rows="3"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块0-->
  <!--Begin表单折叠区块1-->
  <div id="divDlock_1" class="DivBlock">
    <div class="DivHead">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_1');"> </td>
          <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
            <bean:message key="F0406Detail1.title"/>
            1 </span> </td>
        </tr>
      </table>
    </div>
    <div class="DivTail" style="display:block">
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left" width="30%"><html:text property="supplierName1" styleClass="MyText" onkeyup="FiltSupplier(this)" ondblclick="FiltSupplier(this)" style="position:static"  onblur="loseFocus('rtnList')"/>
            <span class="Need">*</span> </TD>
          <TD NOWRAP align="right" width="20%">&nbsp;</TD>
          <TD NOWRAP align="left" width="30%">&nbsp;
          </TD>
        </TR>
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price1" styleClass="MyText" style="text-align:right" maxlength="20"/>
            <span class="Need">*</span> </TD>
          <TD ALIGN="right" NOWRAP width="20%"><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime1" styleClass="MyText" style="text-align:right"/>
            <span class="Need">*</span> </TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块1-->
  <!--Begin表单折叠区块2-->
  <div id="divDlock_2" class="DivBlock">
  <div class="DivHead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <logic:greaterThan name="F0406ActionForm" property="supplierCode2" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_2');"> </td>
        </logic:greaterThan>
        <logic:lessEqual name="F0406ActionForm" property="supplierCode2"  value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_wrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_2');"> </td>
        </logic:lessEqual>
        <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
          <bean:message key="F0406Detail1.title"/>
          2 </span> </td>
      </tr>
    </table>
  </div>
  <logic:greaterThan name="F0406ActionForm" property="supplierCode2"  value="0">
  <div class="DivTail" style="display:block">
    </logic:greaterThan>
    <logic:lessEqual name="F0406ActionForm" property="supplierCode2"  value="0">
    <div class="DivTail" style="display:none">
      </logic:lessEqual>
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left" width="30%"><html:text property="supplierName2" styleClass="MyText" onkeyup="FiltSupplier(this)" ondblclick="FiltSupplier(this)" style="position:static"  onblur="loseFocus('rtnList')"/></TD>
          <TD NOWRAP align="right" width="20%">&nbsp;</TD>
          <TD NOWRAP align="left" width="30%">&nbsp;
          </TD>
        </TR>
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price2" styleClass="MyText" style="text-align:right" maxlength="20"/></TD>
          <TD ALIGN="right" NOWRAP width="20%"><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime2" styleClass="MyText" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块2-->
  <!--Begin表单折叠区块3-->
  <div id="divDlock_3" class="DivBlock">
  <div class="DivHead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <logic:greaterThan name="F0406ActionForm" property="supplierCode3"  value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_3');"> </td>
        </logic:greaterThan>
        <logic:lessEqual name="F0406ActionForm" property="supplierCode3" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_wrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_3');"> </td>
        </logic:lessEqual>
        <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
          <bean:message key="F0406Detail1.title"/>
          3 </span> </td>
      </tr>
    </table>
  </div>
  <logic:lessEqual name="F0406ActionForm" property="supplierCode3" value="0">
  <div class="DivTail" style="display:none">
    </logic:lessEqual>
    <logic:greaterThan name="F0406ActionForm" property="supplierCode3" value="0">
    <div class="DivTail" style="display:block">
      </logic:greaterThan>
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left" width="30%"><html:text property="supplierName3" styleClass="MyText" onkeyup="FiltSupplier(this)" ondblclick="FiltSupplier(this)" style="position:static"  onblur="loseFocus('rtnList')"/></TD>
          <TD NOWRAP align="right" width="20%">&nbsp;</TD>
          <TD NOWRAP align="left" width="30%">&nbsp;
          </TD>
        </TR>
        <TR>
          <TD NOWRAP align="right"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price3" styleClass="MyText" style="text-align:right" maxlength="20"/></TD>
          <TD ALIGN="right" NOWRAP><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime3" styleClass="MyText" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块3-->
  <!--Begin表单折叠区块4-->
  <div id="divDlock_4" class="DivBlock">
  <div class="DivHead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <logic:greaterThan name="F0406ActionForm" property="supplierCode4" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_4');"> </td>
        </logic:greaterThan>
        <logic:lessEqual name="F0406ActionForm" property="supplierCode4" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_wrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_4');"> </td>
        </logic:lessEqual>
        <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
          <bean:message key="F0406Detail1.title"/>
          4 </span> </td>
      </tr>
    </table>
  </div>
  <logic:lessEqual name="F0406ActionForm" property="supplierCode4" value="0">
  <div class="DivTail" style="display:none">
    </logic:lessEqual>
    <logic:greaterThan name="F0406ActionForm" property="supplierCode4" value="0">
    <div class="DivTail" style="display:block">
      </logic:greaterThan>
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left" width="30%"><html:text property="supplierName4" styleClass="MyText" onkeyup="FiltSupplier(this)" ondblclick="FiltSupplier(this)" style="position:static"  onblur="loseFocus('rtnList')"/></TD>
          <TD NOWRAP align="right" width="20%">&nbsp;</TD>
          <TD NOWRAP align="left" width="30%">&nbsp;
          </TD>
        </TR>
        <TR>
          <TD NOWRAP align="right"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price4" styleClass="MyText" style="text-align:right" maxlength="20"/></TD>
          <TD ALIGN="right" NOWRAP><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime4" styleClass="MyText" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块4-->
  <!--Begin表单按钮及提示区-->
  <div class="DivBlock">
    <div class="DivButton">
      <input type="button" name="Submit5" class="MyButton"
					onClick="ShowAlert()" value="<bean:message key="common.save"/>">
      <input type="button" name="Submit6" class="MyButton" value="<bean:message key="common.back"/>"
      onClick="javascript:operation('detailBack');"> </div>
    <div class="DivPrompt" id="divPrompt" style="display:none"> </div>
  </div>
  <%------------- -----------------------------------动态加载start----------------------------------------------------------------------%>
		<div id="rtnList" style="display: none; position:relative; overflow:auto; width:130; height:240" onmouseleave="col(this);initColumn()">
		</div>
  <%------------------------------------------------动态加载end----------------------------------------------------------------------%>
  <!--End表单按钮及提示区-->
  </logic:notEqual>
  
  <logic:equal name="F0406ActionForm" property="operationType" value="show">
  <!--Begin表单折叠区块0-->
  <div id="divDlock_0" class="DivBlock">
    <div class="DivHead">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_0');"> </td>
          <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
            <bean:message key="F0406Detail0.title"/>
            </span> </td>
        </tr>
      </table>
    </div>
    <div class="DivTail" style="display:block">
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%">&nbsp;&nbsp;
            <bean:message key="F0406.materialName"/></TD>
          <TD NOWRAP align="left"><html:text property="materialName" styleClass="MyTextReadOnly"  readonly="true"/></TD>
          <TD NOWRAP align="right" width="20%">&nbsp;&nbsp;
           </TD>
          <TD NOWRAP align="left"></TD>
        </TR>
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.measuringUnit"/></TD>
          <TD NOWRAP align="left"><html:text property="measuringUnitName" styleClass="MyTextReadOnly" readonly="true" /></TD>
          <TD ALIGN="right" NOWRAP width="20%"><!--所属家族-->
            <bean:message key="F0404.supplierFamily"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="familyName" styleClass="MyTextReadOnly" readonly="true"/></TD>
        </TR>
		<TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.description"/></TD>
          <TD NOWRAP align="left" colspan="3"><html:textarea property="description" styleClass="MyAreaReadOnly" readonly="true" style="width:533" rows="3"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块0-->
  <!--Begin表单折叠区块1-->
  <div id="divDlock_1" class="DivBlock">
    <div class="DivHead">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_1');"> </td>
          <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
            <bean:message key="F0406Detail1.title"/>
            1 </span> </td>
        </tr>
      </table>
    </div>
    <div class="DivTail" style="display:block">
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left"><html:text property="supplierName1" styleClass="MyTextReadOnly" readonly="true" /></TD>
          <TD NOWRAP align="right" width="20%"></TD>
          <TD NOWRAP align="left"></TD>
        </TR>
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price1" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
          <TD ALIGN="right" NOWRAP width="20%"><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime1" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块1-->
  <!--Begin表单折叠区块2-->
  <div id="divDlock_2" class="DivBlock">
  <div class="DivHead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <logic:greaterThan name="F0406ActionForm" property="supplierCode2" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_2');"> </td>
        </logic:greaterThan>
        <logic:lessEqual name="F0406ActionForm" property="supplierCode2"  value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_wrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_2');"> </td>
        </logic:lessEqual>
        <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
          <bean:message key="F0406Detail1.title"/>
          2 </span> </td>
      </tr>
    </table>
  </div>
  <logic:greaterThan name="F0406ActionForm" property="supplierCode2"  value="0">
  <div class="DivTail" style="display:block">
    </logic:greaterThan>
    <logic:lessEqual name="F0406ActionForm" property="supplierCode2"  value="0">
    <div class="DivTail" style="display:none">
      </logic:lessEqual>
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left"><html:text property="supplierName2" styleClass="MyTextReadOnly" readonly="true" /></TD>
          <TD NOWRAP align="right" width="20%"></TD>
          <TD NOWRAP align="left"></TD>
        </TR>
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price2" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
          <TD ALIGN="right" NOWRAP width="20%"><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime2" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块2-->
  <!--Begin表单折叠区块3-->
  <div id="divDlock_3" class="DivBlock">
  <div class="DivHead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <logic:greaterThan name="F0406ActionForm" property="supplierCode3"  value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_3');"> </td>
        </logic:greaterThan>
        <logic:lessEqual name="F0406ActionForm" property="supplierCode3" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_wrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_3');"> </td>
        </logic:lessEqual>
        <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
          <bean:message key="F0406Detail1.title"/>
          3 </span> </td>
      </tr>
    </table>
  </div>
  <logic:lessEqual name="F0406ActionForm" property="supplierCode3" value="0">
  <div class="DivTail" style="display:none">
    </logic:lessEqual>
    <logic:greaterThan name="F0406ActionForm" property="supplierCode3" value="0">
    <div class="DivTail" style="display:block">
      </logic:greaterThan>
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left"><html:text property="supplierName3" styleClass="MyTextReadOnly" readonly="true" /></TD>
          <TD NOWRAP align="right" width="20%"></TD>
          <TD NOWRAP align="left"></TD>
        </TR>
        <TR>
          <TD NOWRAP align="right"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price3" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
          <TD ALIGN="right" NOWRAP><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime3" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块3-->
  <!--Begin表单折叠区块4-->
  <div id="divDlock_4" class="DivBlock">
  <div class="DivHead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <logic:greaterThan name="F0406ActionForm" property="supplierCode4" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_unwrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_4');"> </td>
        </logic:greaterThan>
        <logic:lessEqual name="F0406ActionForm" property="supplierCode4" value="0">
          <td nowrap class="line_wrap" width="37" height="17"><img
								src="<%=request.getContextPath()%>/resource/image/block_wrap.gif"
								style="CURSOR: hand;" alt="展开/折叠"
								onClick="JavaScript:WrapBlock('divDlock_4');"> </td>
        </logic:lessEqual>
        <td nowrap class="line_wrap" width="100%" height="17"><span class="SpanTitle">
          <bean:message key="F0406Detail1.title"/>
          4 </span> </td>
      </tr>
    </table>
  </div>
  <logic:lessEqual name="F0406ActionForm" property="supplierCode4" value="0">
  <div class="DivTail" style="display:none">
    </logic:lessEqual>
    <logic:greaterThan name="F0406ActionForm" property="supplierCode4" value="0">
    <div class="DivTail" style="display:block">
      </logic:greaterThan>
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
        <TR>
          <TD NOWRAP align="right" width="20%"><bean:message key="F0404.supplierName"/></TD>
          <TD NOWRAP align="left"><html:text property="supplierName4" styleClass="MyTextReadOnly" readonly="true" /></TD>
          <TD NOWRAP align="right" width="20%"></TD>
          <TD NOWRAP align="left"></TD>
        </TR>
        <TR>
          <TD NOWRAP align="right"><bean:message key="F0406.price"/></TD>
          <TD NOWRAP align="left"><html:text property="price4" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
          <TD ALIGN="right" NOWRAP><bean:message key="F0406.deliveryTime"/>
          </TD>
          <TD ALIGN="left" NOWRAP><html:text property="deliveryTime4" styleClass="MyTextReadOnly" readonly="true" style="text-align:right"/></TD>
        </TR>
      </TABLE>
    </div>
  </div>
  <!--End表单折叠区块4-->
  <!--Begin表单按钮及提示区-->
  <div class="DivBlock">
    <div class="DivButton">
      <input type="button" name="Submit8" class="MyButton" value="<bean:message key="common.back"/>"
      onClick="javascript:operation('detailBack');"> </div>
    <div class="DivPrompt" id="divPrompt" style="display:none"> </div>
  </div>
  <!--End表单按钮及提示区-->
  </logic:equal>
  </html:form>
  </body>
</html:html>
<script language="javascript" type="text/javascript">
InitForm();
</script>
